. _
[Internet]

Favorite Websites

Here are my top 20 most bookmarked—and likely most visited—sites:

Top 20 most bookmarked domains:

  1. www.youtube.com (11586 bookmarks)
  2. www.twitch.tv (535 bookmarks)
  3. www.google.com (428 bookmarks)
  4. www.reddit.com (355 bookmarks)
  5. kick.com (264 bookmarks)
  6. github.com (206 bookmarks)
  7. xxxxxxxxxxxx (159 bookmarks)
  8. www.linkedin.com (152 bookmarks)
  9. xxxxxxxxxxx (114 bookmarks)
  10. www.tiktok.com (101 bookmarks)
  11. stackoverflow.com (87 bookmarks)
  12. www.instagram.com (82 bookmarks)
  13. live.nicovideo.jp (64 bookmarks)
  14. medium.com (62 bookmarks)
  15. x.com (58 bookmarks)
  16. huggingface.co (51 bookmarks)
  17. twitcasting.tv (42 bookmarks)
  18. xxxxxxxxxxxx (40 bookmarks)
  19. www.nicovideo.jp (39 bookmarks)
  20. theflixertv.to (38 bookmarks)

If you want to know your top 20 most bookmarked sites, export your bookmarks as JSON and run the code below.

      
bash
go run main.go <json-file>

code:

      
golang
package main import ( "encoding/json" "fmt" "io/ioutil" "net/url" "os" "sort" ) // Bookmark represents the basic structure we care about in the JSON type Bookmark struct { URI string `json:"uri,omitempty"` Children []Bookmark `json:"children,omitempty"` } func main() { if len(os.Args) < 2 { fmt.Println("Usage: go run main.go bookmarks.json") return } filePath := os.Args[1] // read the exported JSON data, err := ioutil.ReadFile(filePath) if err != nil { panic(err) } var root Bookmark err = json.Unmarshal(data, &root) if err != nil { panic(err) } domainCount := make(map[string]int) collectDomains(&root, domainCount) // convert map to slice for sorting type kv struct { Key string Value int } var sorted []kv for k, v := range domainCount { sorted = append(sorted, kv{k, v}) } sort.Slice(sorted, func(i, j int) bool { return sorted[i].Value > sorted[j].Value }) fmt.Println("Top 20 most bookmarked domains:") for i, kv := range sorted { if i >= 20 { break } fmt.Printf("%d. %s (%d bookmarks)\n", i+1, kv.Key, kv.Value) } } // recursive function to traverse bookmarks tree func collectDomains(b *Bookmark, domainCount map[string]int) { if b.URI != "" { u, err := url.Parse(b.URI) if err == nil && u.Host != "" { domainCount[u.Host]++ } } for _, child := range b.Children { collectDomains(&child, domainCount) } }
0%